package com.memexue.product.po;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "product_info")
@Entity
@Data
public class ProductInfo {
    @Id
    private String productId;//` varchar(32) NOT NULL,
    private String productName;//` varchar(64) NOT NULL COMMENT '商品名称',
    /**
     * 单价
     */
    private BigDecimal productPrice;
    /**
     * 库存
     */
    private Integer productStock;
    private String productDescription;//` varchar(64) DEFAULT NULL COMMENT '描述',
    private String productIcon;//` varchar(512) DEFAULT NULL COMMENT '小图',
    /**
     * 商品状态,0正常1下架
     */
    private Integer productStatus;
    /**
     * 类目编号
     */
    private Integer categoryType;
    private Date createTime;// 创建时间
    private Date updateTime;// 修改时间
}
